package cn.ydxiaoshaui.aip.common;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

import java.io.Serializable;

/**
 * @Description 通用对象封装
 * @author 小帅丶
 * @className BaikeInfo
 * @Date 2019/9/26-11:14
 **/
public class BaikeInfo  implements Serializable {
    private static final long serialVersionUID = 1L;
    /** 对应识别结果百度百科页面链接 */
    private String baike_url;
    /** 对应识别结果百科图片链接 */
    private String image_url;
    /** 对应识别结果百科内容描述 */
    private String description;

    public String getBaike_url() {
        return baike_url;
    }

    public void setBaike_url(String baike_url) {
        this.baike_url = baike_url;
    }

    public String getImage_url() {
        return image_url;
    }

    public void setImage_url(String image_url) {
        this.image_url = image_url;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    @Override
    public String toString() {
        return JSON.toJSONString(this, new SerializerFeature[] {
                SerializerFeature.WriteMapNullValue,
                SerializerFeature.WriteNullListAsEmpty,
                SerializerFeature.WriteNullStringAsEmpty,
                SerializerFeature.WriteNullNumberAsZero,
                SerializerFeature.WriteNullBooleanAsFalse,
                SerializerFeature.UseISO8601DateFormat });
    }
}
